using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BaseSchemaBillTypeMap : EntityTypeConfiguration<t_BaseSchemaBillType>
    {
        public t_BaseSchemaBillTypeMap()
        {
            // Primary Key
            this.HasKey(t => t.FID);

            // Properties
            this.Property(t => t.FID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FEnglishName)
                .IsRequired()
                .HasMaxLength(255);

            this.Property(t => t.FChineseName)
                .IsRequired()
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_BaseSchemaBillType");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FEnglishName).HasColumnName("FEnglishName");
            this.Property(t => t.FChineseName).HasColumnName("FChineseName");
            this.Property(t => t.FIsOuterBill).HasColumnName("FIsOuterBill");
            this.Property(t => t.FIfHasDeleted).HasColumnName("FIfHasDeleted");
        }
    }
}
